package com.jzo2o.customer.controller.agency;

import com.jzo2o.customer.model.dto.request.AgencyCertificationAuditAddReqDTO;
import com.jzo2o.customer.service.AgencyWaarmerkingService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 *
 *
 * @Author mr.luovsd
 * @Date 01 7月 2025 19:44
 */
@RestController("AgencySreveWaarmerkingContorller")
@RequestMapping("/agency")
@Api(tags = "服务端 - 提交认证相关接口")
public class AgencyWaarmerkingContorller {
    @Autowired
    private AgencyWaarmerkingService agencyWaarmerkingService;


    @PostMapping("/agency-certification-audit")
    @ApiOperation("服务端 - 提交认证审核")
    public void agencyCertificationAudit(@RequestBody AgencyCertificationAuditAddReqDTO dto) {
        agencyWaarmerkingService.workerCertificationAudit(dto);
    }


    /**
     * 查询最新的驳回原因
     */
    @GetMapping("/agency-certification-audit/rejectReason")
    @ApiOperation("查询最新的驳回原因")
    public Map<String,String> rejectReason() {
        return agencyWaarmerkingService.rejectReason();
    }
}
